package com.panda.pandawash.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.panda.pandawash.R;
import com.panda.pandawash.base.BaseActivity;
import com.panda.pandawash.fragment.MonitorRunningInfoFragment;

public class ProductStatusActivity extends BaseActivity {
    private MonitorRunningInfoFragment  mMonitorRunningInfoFragment;
    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_product_status);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        initToolBar(toolbar,true,R.string.product_status);
        intent = getIntent();
        if(mMonitorRunningInfoFragment == null) {
            mMonitorRunningInfoFragment = new MonitorRunningInfoFragment();
        }
        addFragment(R.id.fl_container, mMonitorRunningInfoFragment);
        mMonitorRunningInfoFragment.onActivityResult(0,
                MonitorRunningInfoFragment.UPDATE_STATUS_INFO, intent);


    }
}
